rpcd-mod-luci: fix default odhcpd statefile location
authorDavid Härdeman <[email protected]>
Sun, 30 Nov 2025 18:34:08 +0000 (19:34 +0100)
committerPaul Donald <[email protected]>
Wed, 3 Dec 2025 12:36:29 +0000 (13:36 +0100)
The default location for the lease file has changed in odhcpd, update
rpcd-mod-luci to reflect the new default location.

See:
https://github.com/openwrt/openwrt/blob/c9e7f32c4c09277ae945299d068230226994c19c/package/network/services/odhcpd/files/odhcpd.defaults#L29-L31

Signed-off-by: David Härdeman <[email protected]>
libs/rpcd-mod-luci/src/luci.c

index 460102ff4cc94ec18a33f55d1b11b01e4341846d..f5527a8a947896625957c2ccdd7a96cb5510efec 100644 (file)
@@ -466,7 +466,7 @@ lease_open(void)
                add_leasefile("/tmp/dhcp.leases", false);
 
        if (!find_leasefiles(uci, true))
-               add_leasefile("/tmp/hosts/odhcpd", true);
+               add_leasefile("/tmp/odhcpd.leases", true);
 
        uci_free_context(uci);
 }